#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

t = Text(root)

t.tag_config('b', foreground='blue')

for i in range(10):
    t.insert(1.0, '0123456789\n')

bm = BitmapImage('./kawayi.gif')
# bm = PhotoImage('kawayi.gif')

t.image_create('2.0', image=bm)

print t.image_names()

t.pack()

root.mainloop()
